/*
 * Copyright 2009 Nordic Consulting & Development Company
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package pl.ncdc.web.login.client;

import java.util.Map;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 *
 * <p>
 * Created on Jan 29, 2009
 *
 * @author hshsce
 * @version $Id: Credentials.java 171 2009-01-29 23:16:32Z hshsce $
 */
public class Credentials implements IsSerializable {

	private String m_uid;

	private String m_password;

	private boolean m_rememberMe = false;

	private Map<String, String> m_attributes;

	public Credentials() {

	}
	public Credentials(final String uid, final String password) {
		m_uid = uid;
		m_password = password;
	}

	public Credentials(final String uid, final String password, final boolean rememberMe) {
		m_uid = uid;
		m_password = password;
		m_rememberMe = rememberMe;
	}

	public String getUid() {
		return m_uid;
	}

	public void setUid(final String uid) {
		m_uid = uid;
	}

	public String getPassword() {
		return m_password;
	}

	public void setPassword(final String password) {
		m_password = password;
	}

	public boolean isRememberMe() {
		return m_rememberMe;
	}

	public void setRememberMe(final boolean rememberMe) {
		m_rememberMe = rememberMe;
	}

	public Map<String, String> getAttributes() {
		return m_attributes;
	}

	/**
	 * @param attributes the attributes to set
	 */
	public void setAttributes(final Map<String, String> attributes) {
		m_attributes = attributes;
	}

}
